package com.hylink.bean;

import java.sql.Timestamp;
import java.util.List;

/**
 * Roottable entity. @author MyEclipse Persistence Tools
 */

public class Roottable implements java.io.Serializable {

    // Fields

    private Integer id;
    private Integer pid;
    private Integer sid;
    private String rootname;
    private String roottype;
    private String triggertype;
    private String istrigger;
    private String nottrigger;
    private Timestamp updatetime;
    private Integer state;
    /** 【描 述】：菜单编码 */
    private String code;
    /** 【描 述】：菜单路径 */
    private String path;
    /** 【描 述】：子菜单 */
    private List<Roottable> childrens;

    // Constructors

    /**
     * default constructor
     */
    public Roottable() {
    }

    /**
     * minimal constructor
     */
    public Roottable(Integer pid, Integer sid) {
        this.pid = pid;
        this.sid = sid;
    }

    /**
     * full constructor
     */
    public Roottable(Integer pid, Integer sid, String rootname, String roottype,
                     String triggertype, String istrigger, String nottrigger,
                     Timestamp updatetime, Integer state) {
        this.pid = pid;
        this.sid = sid;
        this.rootname = rootname;
        this.roottype = roottype;
        this.triggertype = triggertype;
        this.istrigger = istrigger;
        this.nottrigger = nottrigger;
        this.updatetime = updatetime;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getRootname() {
        return rootname;
    }

    public void setRootname(String rootname) {
        this.rootname = rootname;
    }

    public String getRoottype() {
        return roottype;
    }

    public void setRoottype(String roottype) {
        this.roottype = roottype;
    }

    public String getTriggertype() {
        return triggertype;
    }

    public void setTriggertype(String triggertype) {
        this.triggertype = triggertype;
    }

    public String getIstrigger() {
        return istrigger;
    }

    public void setIstrigger(String istrigger) {
        this.istrigger = istrigger;
    }

    public String getNottrigger() {
        return nottrigger;
    }

    public void setNottrigger(String nottrigger) {
        this.nottrigger = nottrigger;
    }

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<Roottable> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<Roottable> childrens) {
        this.childrens = childrens;
    }

    @Override
	public String toString() {
		return "Roottable [id=" + id + ", pid=" + pid + ", sid=" + sid + ", rootname=" + rootname + ", roottype="
				+ roottype + ", triggertype=" + triggertype + ", istrigger=" + istrigger + ", nottrigger=" + nottrigger
				+ ", updatetime=" + updatetime + ", state=" + state + ", code=" + code + ", path=" + path
				+ ", childrens=" + childrens + "]";
	}
    
}